<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ page import="javax.imageio.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><c:out value='${context.register }' />-<c:out
	value='${context.title }' /></title>
<script language="javascript">
function checkRegisterForm()
{
if(RegisterForm.userName.value==""||RegisterForm.userName.value.replace(/(^\s*)|(\s*$)/g, "")=="")
{
alert("<c:out value='${context.msg_user_null}' />");
RegisterForm.userName.focus();
return false;
}
if(RegisterForm.userPwd.value=="")
{
alert("<c:out value='${context.msg_pwd_null}' />");
RegisterForm.userPwd.focus();
return false;
}
var pwd=RegisterForm.userPwd.value;
if(pwd.length<6)
{
alert("<c:out value='${context.msg_pwd_length_note}' />");
return false;
}

if(RegisterForm.userPwd.value!=RegisterForm.userPwd1.value)
{
alert("<c:out value='${context.msg_new_pwd_same}' />");
RegisterForm.userPwd.focus();
return false;
}
if(RegisterForm.userEmail.value==""||RegisterForm.userEmail.value.replace(/(^\s*)|(\s*$)/g, "")=="")
{
alert("<c:out value='${context.msg_mail_null}' />");
RegisterForm.userEmail.focus();
return false;
}


var emailStr=RegisterForm.userEmail.value;
var emailPat=/^(.+)@(.+)$/;
var matchArray=emailStr.match(emailPat);
if (matchArray==null) {
 alert("<c:out value='${context.msg_mail_format}' />")
 return false;
}


return true;
}
</script>
</head>
 
<body bottomMargin=0 leftMargin=10 topMargin=0 onload=preloadImages() rightMargin=10 marginheight="0">
 
 

<table  width="100%" border="0" cellpadding="0" cellspacing="0" align=center>
<%-- //////////////////////banner --%>
<tr><td>
	<c:import url="/banner.jsp" />
</td></tr>
<%--////////////////////// mid --%>

<tr><td>

<TABLE cellSpacing=0 cellPadding=0 width=100% border=0 align=center>
  <TBODY>
  <TR>
 
    <TD  >
    
    <table width=100% align=center border="0" cellpadding="0" cellspacing="0">
    <tr><td align=center>
<br><br>


 
<form name="RegisterForm" onSubmit="return checkRegisterForm();"
	method=post
	action="/group/userRegister<c:out value='${context.postfix }' />">
<input type=hidden name="cmd" value="userRegister">
<table width=100% cellspacing=0 cellpadding=0>
	<tr bgcolor="orange">
		<td width=100%><c:out
			value='${context.register}' /></td>
		<td width=25 align=right>
		<div style=""><img src="/group/images/calendar/close.gif"
			onClick="hideAll()" border=0 /></div>
		</td>
	</tr>

<tr><td colspan=2 align=center width=100%>

<table  width=100%>

	<TR>
		<TD style="height: 40px;"  width="165" height=30 ><input type=button style="background:#d2d4d2" value="<c:out value='${context.login}' />"  onclick="showLoginWin()"></TD>
		<TD ><c:out
			value='${context.msg_must_content }' /></TD>
	</TR>
	<TR>
		<TD style="height: 40px;" align=right><c:out
			value='${context.text_user_name }' />&nbsp;&nbsp;&nbsp;</TD>
		<TD><input type=text style="width:160px" name="userName"
			maxlength="45" size="55" onkeyup="value=value.replace(/[\W]/g,'') "
			onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
	
		</TD>
	</TR>
	<TR>
		<TD style="height: 40px;" align=right><c:out
			value='${context.text_pwd }' />&nbsp;&nbsp;&nbsp;</TD>
		<TD><input type=password name="userPwd" maxlength="55" style="width:160px"  size="20">
		<SPAN class=text_orange><c:out
			value='${context.msg_pwd_length_note }' /></SPAN></TD>
	</TR>
	<TR>
		<TD style="height: 40px;" align=right><c:out
			value='${context.text_pwd2 }' />&nbsp;&nbsp;&nbsp;</TD>
		<TD><input type=password name="userPwd1" style="width:160px" maxlength="55" size="20">
		<SPAN class=text_orange> </SPAN></TD>
	</TR>
	<TR>
		<TD style="height: 40px;" align=right>Email&nbsp;&nbsp;&nbsp;</TD>
		<TD><input type="text" name="userEmail" style="width:160px" maxlength="55" size="20">
		<SPAN class=text_orange> </SPAN></TD>
	</TR>
	<TR>
		<TD style="height: 40px;" align=right><c:out
			value='${context.text_code }' />&nbsp;&nbsp;&nbsp;</TD>
		<TD><input type="text" name="rand" maxlength="40" size="10">

		</TD>
	</TR>
	<TR>
		<TD style="height: 40px;" >&nbsp;&nbsp;</TD>
		<TD><img src="/group/img.jsp"  >&nbsp;&nbsp;</TD>
	</TR>

	<TR align=center>
		<TD colSpan=2 style="height: 40px;" > 
		<input type=submit value="<c:out value='${context.register }' />"
			name="submit">&nbsp;&nbsp;&nbsp;&nbsp; <input type=reset
			value="<c:out value='${context.button_reset }' />" name="reset"><br>
		<br>
		</TD>
	</TR>
</TABLE>
</td></tr></table>
</form>

    </td></tr>
    </table>
</td>

</tr>
</table>
</td>
</tr>
<%--/////////////////下部页尾--%>
<tr><td>
	<c:import url="/footer.jsp" />
</td></tr>
</table>

</body>
</html>
